package sebastiankerckhof.structure.math;

import java.io.Serializable;



public class Point2f extends Tuple2f implements Serializable
{
	
		public static final Point2f ORIGIN = new Point2f();
		
    public Point2f()
    {
    }

    public Point2f(float x, float y)
    {
        super(x, y);
    }

    public Point2f(float p[])
    {
        super(p);
    }

    public Point2f(Point2f p)
    {
        super(p);
    }

    public Point2f(Tuple2f t)
    {
        super(t);
    }
    
    public Point2f add(Point2f o){ return plus(o); }
    public Point2f plus(Point2f o) {
	    return new Point2f(this.x + o.x, this.y + o.y);
    }

}
